<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>新致双录云平台</title>
  <meta name="description" content="微营销管理平台">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="../../assets/img/main/liantongLOGO.jpg">
  <link rel="apple-touch-icon-precomposed" href="../../assets/libs/amazeui/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="../../assets/libs/amazeui/css/amazeui.min.css" />
  <link rel="stylesheet" href="../../assets/libs/amazeui/css/amazeui.datatables.min.css" />
  <link rel="stylesheet" href="../../assets/libs/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <link rel="stylesheet" href="../../assets/libs/amazeui/css/app.css?v2017010301">
  <link rel="stylesheet" href="../../assets/css/core.css?v2017010301">
  <style>
	  .percent_input{
		  width: 80px;
	  }
	.am-modal-bd{
		height: 240px;
		overflow: auto;
	}
	.bordernone {
		border: none !important;
	}
	.borderbottom {
		border-bottom: 1px solid #E6E6E6 !important;
	}
	.am-btn-default {
		background-color: #fff !important;
	}
	.margin1 {
		margin-bottom: 20px;
	}
	.margintop {
		margin-top: 30px;
	}
	thead {
		background-color: #F4F4F4;
	}
	.am-table>thead>tr>th {
		border: none;
	}
	td {
		border: none !important;
	}
	.am-table-striped>tbody>tr:nth-child(odd)>td {
		background-color: #fff;
	}
	.am-table-striped>tbody>tr:nth-child(even)>td {
		background-color: #FBFBFB;
	}
	.am-btn.am-radius {
		border-radius: 5px !important;
	}
	.am-btn-primary {
		background-color: #1890FF !important;
	}
</style>
</head>

<body data-type="index" page-text="抽检任务" style="overflow: hidden">
	<div class="am-g tpl-g" id="main" v-cloak>
		<!-- 内容区域 -->
		<div class="tpl-content-wrapper content-margin-left">
			<!-- TODO 内容显示区域 -->
			<div class="row-content am-cf">
				<div class="row">
					<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
						<div class="widget am-cf">
							<div class="widget-body am-fr widget-search">
								<form class="am-form tpl-form-border-form tpl-form-border-br">
									<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 del-padding margin1">
										<div class="am-form-group am-form-group-sm am-u-sm-12 am-u-md-7 am-u-lg-2 borderbottom">
											<label class="am-form-label am-u-sm-5 am-u-md-6 am-u-lg-5 am-u-sm-pull-1 am-u-md-pull-2 am-u-lg-pull-3">机构</label>
											<div class="am-u-sm-6 am-u-md-5 am-u-lg-5 am-u-sm-pull-1 am-u-md-pull-2  am-u-lg-pull-2">
												<input type="text" v-model="organCodeName" id="organCode" class="tpl-form-input bordernone" placeholder="请选择" readonly="readonly" @click="chooseOrg">
											</div>
											<div class="am-u-sm-1 am-u-md-1  am-u-lg-1  am-u-lg-pull-0">
                                                <span class="am-icon-sort-desc"></span>
                                            </div>
										</div>
										<div class="am-form-group am-form-group-sm am-u-sm-12 am-u-md-7 am-u-lg-4  am-u-lg-push-1 borderbottom">
											<label class="am-form-label am-u-sm-5 am-u-md-6 am-u-lg-6 am-u-sm-pull-1 am-u-md-pull-2 am-u-lg-pull-3">任务创建时间</label>
											<div class="am-u-sm-6 am-u-md-5 am-u-lg-5 am-u-sm-pull-1 am-u-md-pull-2  am-u-lg-pull-2">
												<input type="text" id="beginDay"  class="tpl-form-input bordernone" placeholder="请选择创建时间" readonly="readonly">
												<div onclick="laydate({elem: '#beginDay'});" style="width:140px;height:33px;position: absolute;margin-top: -33px">
												</div>
											</div>
											<div class="am-u-sm-1 am-u-sm-pull-0 am-u-md-1 am-u-md-pull-0 am-u-lg-1  am-u-lg-pull-0">
                                                <span class="am-icon-sort-desc"></span>
                                            </div>
										</div>
										<div class="am-form-group am-form-group-sm am-u-sm-12 am-u-md-7 am-u-lg-4 am-u-md-pull-5 am-u-lg-pull-0 borderbottom">
											<label class="am-form-label am-u-sm-5 am-u-md-6 am-u-lg-6 am-u-sm-pull-1 am-u-md-pull-2 am-u-lg-pull-3">任务结束时间</label>
											<div class="am-u-sm-6 am-u-md-5 am-u-lg-5 am-u-sm-pull-1 am-u-md-pull-2  am-u-lg-pull-2">
												<input type="text" id="endDay" class="tpl-form-input bordernone" placeholder="请选择结束时间" readonly="readonly">
												<div onclick="laydate({elem: '#endDay'});" style="width:140px;height:33px;position: absolute;margin-top: -33px">
												</div>
											</div>
											<div class="am-u-sm-1 am-u-sm-pull-0 am-u-md-1 am-u-md-pull-0 am-u-lg-1  am-u-lg-pull-0">
                                                <span class="am-icon-sort-desc"></span>
                                            </div>
										</div>	
									</div>
									<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 del-padding">									
											<div class="am-form-group am-u-sm-12 am-u-md-6 am-u-lg-7 am-u-sm-push-7 am-u-md-push-9 am-u-lg-push-10">
												<button type="button" class="am-btn am-radius am-btn-primary tpl-btn-bg-color-success am-btn-xs" @click="check_c()">
												<span class="am-icon-search"></span>&nbsp;查询
												</button>
												<button type="button" class="am-btn am-radius am-btn-default tpl-btn-bg-color-success am-btn-xs" @click="check_r()">
												<span class="am-icon-reply"></span>&nbsp;重置
												</button>
											</div>
									</div>
								</form>
							</div>

							<div class="am-u-sm-6 am-u-md-6 am-u-lg-6 ">
								<div class="am-form-group">
									<div class="am-btn-toolbar">
										<div class="am-btn-group am-btn-group-xs">
											 <button type="button" class="am-btn am-radius am-btn-primary " @click="addBtn()">
												<span class="am-icon-plus"></span>&nbsp;新增
											</button>
										</div>
									</div>
								</div>
							</div>
							<div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
								<div class="am-form-group tpl-table-list-select">
									<select data-am-selected="{btnWidth: '30%',btnSize:'sm'}" id="RowNum" v-model="RowNum" onchange="changeRowNum()">
										<option value="10">10</option>
										<option value="20">20</option>
										<option value="30">30</option>
										<option value="40">40</option>
										<option value="50">50</option>
									</select>
								</div>
							</div>
							<div class="am-u-sm-12">
								<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black am-table-centered" id="example-r">
									<thead>
										<tr>
											<th>序号</th>
											<th>机构</th>
											<th>开始时间</th>
											<th>结束时间</th>
											<th>抽检比例</th>
											<th>抽检数</th>
										</tr>
									</thead>
									 <tbody>
										<tr v-for="(item, index) in checkDatas">
											<td>{{index+1}}</td>
											<td>{{item.organName}}</td>
											<td>{{item.checkStartDate}}</td>
											<td>{{item.checkEndDate}}</td>
											<td>{{item.percent?item.percent+'%':''}}</td>
											<td>{{item.checkDataNo}}</td>
										</tr>
									</tbody> 
								</table>
							</div>
							<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-cf">
								<div class="am-fr am-u-sm-3 am-u-md-3 am-u-lg-2 am-u-sm-push-0 am-u-md-push-0 am-u-lg-push-0">
									<form class="am-form am-pagination">
										<div class="am-u-sm-7 am-u-md-7 am-u-lg-7">
											<input type="number" id="page-num" v-model="pageNum" style="padding: .3em">
										</div>
										<div class="am-u-sm-5 am-u-md-5 am-u-lg-5">
											<div class="am-btn-group-xs">
												<button type="button" class="am-btn am-btn-primary"
													class="am-disabled"
													@click="selectPage(pageNum)">跳转</button>
											</div>
										</div>
									</form>
								</div>
								 <div class="am-fr">
									<ul class="am-pagination tpl-pagination">
										<li class="am-disabled">
											<a href="javascript:void(0);" @click="selectPage(1)"><span
												class="am-icon-angle-double-left"></span></a>
										</li>
										<li
											class="am-disabled">
											<a href="javascript:void(0);" @click="offsetPage(-1)"><span
												class="am-icon-angle-left"></span></a>
										</li>
										<li v-for="page in pagination"
											v-bind:class="page != 0 ? (page == nowPage ? 'am-active am-disabled' : '') : 'am-disabled'">
											<a href="javascript:void(0);" @click="selectPage(page)">{{page
												== 0 ? '...' : page}}</a>
										</li>
										<li class="am-disabled">
											<a href="javascript:void(0);" @click="offsetPage(1)"><span
												class="am-icon-angle-right"></span></a>
										</li>
										<li class="am-disabled">
											<a href="javascript:void(0);"
											@click="selectPage()"><span
												class="am-icon-angle-double-right"></span></a>
										</li>
									</ul>
								</div>
							</div>


						</div>
					</div>
				</div>
				<!--列表区域-->
				<!-- <div class="row">
					<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
						<div class="widget am-cf">
							<div class="widget-body  am-fr">
								<div class="am-u-sm-12 am-u-md-6 am-u-lg-6 margintop">
									<div class="am-form-group">
										<div class="am-btn-toolbar">
											<div class="am-btn-group am-btn-group-xs">
												 <button type="button" class="am-btn am-radius am-btn-primary " @click="addBtn()">
													<span class="am-icon-plus"></span>&nbsp;新增
												</button>
											</div>
										</div>
									</div>
								</div>
								<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
									<div class="am-form-group tpl-table-list-select">
										<select data-am-selected="{btnWidth: '30%',btnSize:'sm'}" id="RowNum" v-model="RowNum" onchange="changeRowNum()">
											<option value="10">10</option>
											<option value="20">20</option>
											<option value="30">30</option>
											<option value="40">40</option>
											<option value="50">50</option>
										</select>
									</div>
								</div>
								<div class="am-u-sm-12">
									<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black am-table-centered" id="example-r">
										<thead>
											<tr>
												<th>序号</th>
												<th>机构</th>
												<th>开始时间</th>
												<th>结束时间</th>
												<th>抽检比例</th>
												<th>抽检数</th>
											</tr>
										</thead>
										 <tbody>
											<tr v-for="(item, index) in checkDatas">
												<td>{{index+1}}</td>
												<td>{{item.organName}}</td>
												<td>{{item.checkStartDate}}</td>
												<td>{{item.checkEndDate}}</td>
												<td>{{item.percent?item.percent+'%':''}}</td>
												<td>{{item.checkDataNo}}</td>
											</tr>
										</tbody> 
									</table>
								</div>
								<div class="am-u-lg-12 am-cf">
									<div class="am-fr am-u-sm-12 am-u-md-12 am-u-lg-2">
										<form class="am-form am-pagination">
											<div class="am-u-sm-7 am-u-md-7 am-u-lg-7">
												<input type="number" id="page-num" style="padding: .3em">
											</div>
											<div class="am-u-sm-5 am-u-md-5 am-u-lg-5">
												<div class="am-btn-group-xs">
													<button type="button" class="am-btn am-btn-primary"
														class="am-disabled"
														@click="selectPage(pageNum)">跳转</button>
												</div>
											</div>
										</form>
									</div>
									 <div class="am-fr">
										<ul class="am-pagination tpl-pagination">
											<li class="am-disabled">
												<a href="javascript:void(0);" @click="selectPage(1)"><span
													class="am-icon-angle-double-left"></span></a>
											</li>
											<li
												class="am-disabled">
												<a href="javascript:void(0);" @click="offsetPage(-1)"><span
													class="am-icon-angle-left"></span></a>
											</li>
											<li v-for="page in pagination"
												v-bind:class="page != 0 ? (page == nowPage ? 'am-active am-disabled' : '') : 'am-disabled'">
												<a href="javascript:void(0);" @click="selectPage(page)">{{page
													== 0 ? '...' : page}}</a>
											</li>
											<li class="am-disabled">
												<a href="javascript:void(0);" @click="offsetPage(1)"><span
													class="am-icon-angle-right"></span></a>
											</li>
											<li class="am-disabled">
												<a href="javascript:void(0);"
												@click="selectPage()"><span
													class="am-icon-angle-double-right"></span></a>
											</li>
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div> -->
			</div>
		</div>
		<div class="am-modal am-modal-alert" tabindex="-1" id="orgTree">
            <div class="am-modal-dialog">
                <div class="am-modal-hd">机构树</div>
                <div class="am-modal-bd">
                    <ul id="menuTree" class="ztree"></ul>
                </div>
                <div class="am-modal-footer">
                    <span class="am-modal-btn" @click="chooseBtnClick">确定</span>
                </div>
            </div>
        </div>
	</div>
	<script src="../../assets/js/util/crypto-js.min.js"></script>
	<script src="../../assets/js/util/Aes.js"></script>
	<script src="../../assets/libs/amazeui/js/jquery.min.js"></script>
	<script src="../../assets/libs/vue/vue.min.js"></script>
	<script src="../../assets/libs/amazeui/js/theme.js"></script>
	<script src="../../assets/libs/amazeui/js/amazeui.min.js"></script>
	<script src="../../assets/libs/amazeui/js/amazeui.datatables.min.js"></script>
	<script src="../../assets/libs/amazeui/js/dataTables.responsive.min.js"></script>
	<script src="../../assets/js/laydate-v1.1/laydate/laydate.js"></script>
	<script type="text/javascript" src="../../assets/libs/ztree/js/jquery.ztree.core.js"></script>
	<script src="../../assets/libs/axios.min.js"></script>
	<script src="../../assets/js/util/inner.js?v2017010301"></script>
	<script src="../../assets/js/util/pagination.js?v2017010301"></script>
	<script src="../../assets/env.js?v2017010301"></script>
	<script src="../../assets/js/util/common.js?v2017010301"></script>
	<script src="../../assets/js/biz/sys/task/nrrtask.js?v20200713"></script>
</body>
</html>